@import url("../audioplayer.css");

.home {
  max-width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
}

.container {
  background-color: #fff;
}

.horizontal-img {
  height: 5.5rem;
}

/deep/ .swiper-slide {
  background-color: #000;
}

/deep/ .audioplayer {
  max-width: 100vw;
  font-size: 16px;
}

.horizontal-img {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;

  img {
    max-width: 100%;
    max-height: 100%;
  }
}

.subtilte-wrap-1 {
  position: absolute;
  bottom: 5px;
  width: 100%;
  height: 30%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: flex-end;

  .subtilte-1 {
    max-width: 80%;
    max-height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
    color: #ffffff;
    margin: 5px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.book-info-container {
  width: 100%;
  background: #fff;

  .book-info-wrapper {
    margin-top: 0.3rem;
    padding-bottom: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    .title {
      font-size: 0.36rem;
      font-weight: bold;
    }

    .share-wrapper {
      color: #999;
      font-size: 0.24rem;

      .icon {
        display: inline-block;
        margin-right: 0.07rem;
        width: 0.3rem;
        height: 0.29rem;
        background-image: url("../assets/分享24X24@2x.png");
        background-repeat: no-repeat;
        background-size: 100%;
        vertical-align: top;
      }
    }
  }
}

.user-info-container {
  display: flex;
  background: #fff;

  .img-wrapper {
    line-height: 0;
  }

  .avatar {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
  }

  .user-info-wrapper {
    flex: 1;
    margin-left: 0.2rem;

    .nickname {
      font-size: 0.32rem;
      color: #000;
      font-weight: bold;

      a {
        color: inherit;
      }
    }

    .user-age {
      margin: 0.11rem 0;
      color: #666;
      font-size: 0.24rem;
    }

    .upload-container {
      color: #999;
      font-size: 0.2rem;
    }
  }

  .score-info-wrapper {
    width: 1.24rem;
    height: 1.2rem;

    .score {
      font-size: 0.24rem;
      font-style: italic;
      color: #ff7200;
      line-height: 1;
      text-align: center;

      .num {
        font-size: 0.8rem;
      }
    }

    .desc {
      width: 1.24rem;
      height: 0.36rem;
      background-image: linear-gradient(90deg, #ff7200 0%, #fd9917 100%),
        linear-gradient(#ff7e00, #ff7e00);
      background-blend-mode: normal, normal;
      border-radius: 0.18rem;
      font-size: 0.24rem;
      color: #ffffff;
      text-align: center;
      line-height: 0.36rem;
    }
  }
}

.score-detail-container {
  margin: 0;
  padding-top: 0.24rem;
  box-sizing: border-box;
  background: #fff;

  .score-detail-wrapper {
    display: flex;
    height: 1.32rem;
    border-radius: 0.16rem;
    border: 0.02rem dashed #d7d7d7;
    font-size: 0.24rem;
    color: #999;

    &>div {
      margin-top: 0.28rem;
      position: relative;
      flex: 1;
      text-align: center;

      &:not(:last-child) {
        &::after {
          content: "";
          position: absolute;
          right: 0;
          top: 0.14rem;
          width: 0.02rem;
          height: 0.48rem;
          background: #d7d7d7;
        }
      }
    }

    .score {
      margin-bottom: 0.16rem;
      font-size: 0.24rem;
      color: #666;
      line-height: 1;
    }

    .num {
      font-size: 0.48rem;
      // color: $them;
      line-height: 1;
    }
  }
}

.praise-container {
  padding-top: 0.32rem;
  background-color: #fff;

  .praise-icon-container {
    box-sizing: border-box;
    margin: 0 auto;
    width: 1.04rem;
    height: 1.04rem;
    border-radius: 50%;
    border: 0.06rem solid rgba(205, 205, 205, 0.4);
    color: #cdcdcd;

    &.active {
      border-color: rgba(255, 80, 80, 0.5);

      .icon {
        background-color: #ff5050;
        background-image: url("../assets/赞（白色）48X48@2x.png");
      }
    }

    .icon {
      display: block;
      width: 100%;
      height: 100%;
      background-color: #cdcdcd;
      border-radius: 50%;
      background-size: 0.44rem 0.45rem;
      background-position: center;
      background-repeat: no-repeat;
      background-image: url("../assets/赞（灰色）48X48@2x.png");
    }
  }

  .desc {
    margin-top: 0.15rem;
    font-size: 0.24rem;
    color: #666;
    text-align: center;

    .num {
      color: #ff5050;
    }
  }

  .history-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.25rem;
    margin-top: 0.02rem;
    font-size: 0.24rem;

    .icon {
      display: inline-block;
      margin-right: 0.12rem;
      width: 0.24rem;
      height: 0.24rem;
      // background-image: url("../assets/其他分享图标24x24@2x.png");
      background-size: 100%;
      background-repeat: no-repeat;
      vertical-align: middle;
    }

    a {
      display: inline-block;
      // color: $them;
    }

    .download {
      a {
        font-size: 0.24rem;
        color: #999;
        text-decoration: underline;
      }
    }
  }
}

.mt {
  margin-top: 0.24rem;
}

.comment-container {
  padding-top: 0.32rem;
  background-color: #fff;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .title {
    font-size: 0.36rem;
    font-weight: 550;
    color: #000;

    .num {
      display: inline-block;
      margin: 0 0.1rem;
      color: #999;

      &.active {
        color: #ff5050;
      }
    }
  }

  .login-status {
    font-size: 0.28rem;
    font-weight: bold;
    letter-spacing: 0px;
    color: #ff8b3a;

    &.logined {
      color: #999;
    }
  }

  .input-container {
    position: sticky;
    display: flex;
    margin: 0.36rem 0;
    line-height: 0;
    box-sizing: border-box;
    padding-left: 0.16rem;
    height: 0.78rem;
    width: 100%;
    border-radius: 0.39rem;
    font-size: 0.28rem;
    background-color: #ebebeb;

    input {
      flex: auto;
      background-color: transparent;
    }

    button {
      width: 1.42rem;
      height: 0.78rem;
      border-radius: 0.39rem;
      color: #fff;
      background: $them;
      font-size: 0.32rem;
    }
  }

  .comment-list {

    .more {
      display: block;
      margin: 0 auto;
      width: 4.8rem;
      height: 0.88rem;
      background-color: #e6faf1;
      border-radius: 0.44rem;
      font-size: 0.32rem;
      font-weight: bold;
      color: $them;

      .icon {
        display: inline-block;
        margin-left: 0.12rem;
        width: 0.35rem;
        height: 0.32rem;
        background-image: url("../assets/下拉图标32x32@2x.png");
        background-size: 100%;
        vertical-align: middle;
      }
    }
  }

  .login-need {
    line-height: 1rem;
    font-size: 0.24rem;
    text-align: center;
    color: #999;
  }
}

.comment-loading-tips {
  height: .8rem;
  line-height: .8rem;
  font-size: .24rem;
  color: #999;
  text-align: center;
}